From d31af090d2bbae0d7a0f4c1245d74e17a04cdeee Mon Sep 17 00:00:00 2001 From: "kaf24@scramble.cl.cam.ac.uk" Date: Thu, 22 Jul 2004 03:26:47 +0000 Subject: [PATCH] bitkeeper revision 1.1108.9.1 (40ff33f7mGpVA0FaO9NtlXnmThKnuA) network.c: Small bugfix. --- linux-2.6.7-xen-sparse/drivers/xen/net/network.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-2.6.7-xen-sparse/drivers/xen/net/network.c b/linux-2.6.7-xen-sparse/drivers/xen/net/network.c index 51646e9c8f..9381595a2d 100644 --- a/linux-2.6.7-xen-sparse/drivers/xen/net/network.c +++ b/linux-2.6.7-xen-sparse/drivers/xen/net/network.c @@ -275,6 +275,9 @@ static void network_alloc_rx_buffers(struct net_device *dev) } while ( (++i - np->rx_resp_cons) != NETIF_RX_RING_SIZE ); + if ( unlikely(nr_pfns == 0) ) + return; + /* * We may have allocated buffers which have entries outstanding in the page * update queue -- make sure we flush those first! -- 2.30.2